<template>
  <div>
    <hr>
    <p> AComponent </p>
    
      根实例|{{this.$root.roogMsg}}
    <p @click="count+=1">{{count}}点击自增</p>
  </div>
</template>

<script>
  export default {
    name: "AMyComponent",
    data() {
      return {
        count: 0,
      }
    },
    props: ["title"]
  }
</script>
<!-- scoped
 增加 该属性，样式只能在当前显示
 -->
<style scoped>
  p {
    color: red;
  }
</style>
